<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://www.yaodian100.com/jsp/yaodian100" prefix="yaodian100" %>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@	page import="com.yaodian100.core.common.utils.ServerValue"%>
<c-rt:set var="midContextPath" value='<%=ServerValue.getMidContextPath()%>'/>
<!-- 月历 -->
<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick-zh-CN.js"></script>
<link rel="stylesheet" type="text/css" href="/css/smoothness.datepick.css" />
<script language="javascript">
	$().ready( function() {
		$('#startDateParam').datepick({minDate: null, maxDate: new Date(), showOn: 'both', 
	    	buttonImageOnly: true, buttonImage: '${midContextPath}/images/calendar.gif',dateFormat:"yy-mm-dd",yearRange: '-3:+3'}); 
		$('#endDateParam').datepick({minDate: null, maxDate: new Date(), showOn: 'both', 
	    	buttonImageOnly: true, buttonImage: '${midContextPath}/images/calendar.gif',dateFormat:"yy-mm-dd",yearRange: '-3:+3'}); 
	});
</script>
<s:actionerror />
<s:actionmessage />
<s:fielderror />
<h1>提现资料管理</h1>
<div class="data-form">
	<s:form action="search.do" method="post">
	申请提现日期：
	<input name="startDateParam" type="text" id="startDateParam"
		value="${startDateParam}" size="10" maxlength="10">
    ~ 
  <input name="endDateParam" type="text" id="endDateParam"
		value="${endDateParam}" size="10" maxlength="10"><br/>
	处理方式：<s:select name="cashOutTypeParam"
		list="cashOutTypeMenu.options" listKey="key" listValue="value.name"  headerKey="" headerValue="全部"/>
	单据状态：<s:select name="cashOutStatusParam"
		list="cashOutStatusMenu.options" listKey="key" listValue="value.name"  headerKey="" headerValue="全部"/>
	<input type="button" value="搜寻" onClick="this.form.submit();" />
</s:form></div>
<br />
<br />
<table class="tb-1" width="100%">
	<thead>
		<tr>
			<th>提现单号</th>
			<th>申请日期</th>
			<th>登入代码</th>
			<th>提现方式</th>
			<th>提现金额</th>
			<th>手续费</th>
			<th>处理状态</th>
		</tr>
	</thead>
	<tbody>
		<c-rt:forEach items="${applyCashOuts}" var="applyCashOut" varStatus="rows_index">
			<tr class="${rows_index.count % 2 == 0 ? 'bg-yl' : ''}">
				<td><a href="view.do?applyCashOutId=${applyCashOut.id}">${applyCashOut.id}</a></td>
				<td><fmt-rt:formatDate value="${applyCashOut.applyDate}" pattern="yyyy-MM-dd" /></td>
				<td>${applyCashOut.memberName}</td>
				<td>${cashOutTypeMenu.options[applyCashOut.cashOutType].name}</td>
				<td>${applyCashOut.applyAmount}</td>
				<td>${applyCashOut.fee}</td>
				<td>${cashOutStatusMenu.options[applyCashOut.cashOutStatus].name}</td>
			</tr>
		</c-rt:forEach>
	</tbody>
</table>
<yaodian100:pageutil link="search.do" pagerObj="${pager}" />